#pragma once

#include <bfunc_eclic.h>
#include <gexpl_eclic.h>

// 根据level、priority域的位数和其数值返回clicintctl（level_priority）域的值
static inline u32_s eclic_set_level_priority(eclic_cliccfg_nlbits_e nlbits,
					     u32_s level, u32_s priority) {
	u32_s level_bit_amount = eclic_get_level_bit_amount(nlbits);
	return eclic_set_level_priority_by_bit_amount(
		level_bit_amount, level, priority, LEVEL_PRIORITY_BIT_AMOUNT);
}
